<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<link href="./css/common.css" rel="stylesheet"  />
<link href="../../css/buttons.css" rel="stylesheet"  />
<script type="text/javascript" src="../../js/util.js"></script>
<script type="text/javascript">
function checkForm(frm){
	var address=frm['adddress'];
	var postcode=frm['postcode'];
	var legalPerson=frm['legalPerson'];
	var contactPerson=frm['contactPerson'];
	var phone=frm['phone'];
	var fax=frm['fax'];
	var email=frm['email'];
	var desc=frm['desc'];
	var mainProjects=frm['mainProjects'];
	var attProjects=frm['attProjects'];
	var outstanding=frm['outstanding'];
	
	if(address.value.trim().length<1){
		alert("请输入地址！");
		address.select();
		return false;
	}
	if(!new FieldValidate(postcode).tminlen(6,"邮编")){
		return false;
	}
	if(!new FieldValidate(postcode).tmaxlen(6,"邮编")){
		return false;
	}
	if(!new FieldValidate(legalPerson).tminlen(1,"法人")){
		return false;
	}
	if(!new FieldValidate(contactPerson).tminlen(1,"联系人")){
		return false;
	}
	if(!new FieldValidate(phone).tminlen(1,"电话")){
		return false;
	}
	if(!new FieldValidate(fax).tminlen(1,"传真")){
		return false;
	}
	if(!new FieldValidate(email).tminlen(1,"电子邮件")){
		return false;
	}
	if(!new FieldValidate(desc).tminlen(1,"简介")){
		return false;
	}
	if(!new FieldValidate(mainProjects).tminlen(1,"主营项目")){
		return false;
	}
	if(!new FieldValidate(attProjects).tminlen(1,"兼营项目")){
		return false;
	}
	if(!new FieldValidate(outstanding).tminlen(1,"近期业绩")){
		return false;
	}
}
</script>
</head>
<body>
<div class="pic-tip-item" id="tipItem">
	<input type="button" value="删除" onclick="removePic()" />
	<input type="button" value="查看" />
</div>
<form action="#" method="post" onsubmit="return checkForm(this)">
<table cellpadding="0" cellspacing="1" border="0" width="100%">
	<tr class="th">
		<td colspan="2">资料维护</td>
	</tr>
	<tr class="tb">
		<td width="60">单位名称</td>
		<td>惠普中国北京分公司</td>
	</tr>
	<tr class="tb">
		<td>地址</td>
		<td><input type="text" name="adddress" size="70" id="adddress" /></td>
	</tr>
	<tr class="tb">
		<td>邮政编码</td>
		<td><input type="text" name="postcode" id="postcode" /></td>
	</tr>
	<tr class="tb">
		<td>企业法人</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>所在地区</td>
		<td><select name="area" id="area">
			<option>==请选择地区==</option>
			<option value="1">北京</option>
			<option value="2">上海</option>
			<option value="3">深圳</option>
			<option value="4">广州</option>
			<option value="5">重庆</option>
			<option value="6">大连</option>
		</select></td>
	</tr>
	<tr class="tb">
		<td>所属行业</td>
		<td><select name="industry" id="industry">
			<option>==请选择行业==</option>
			<option value="1">IT</option>
			<option value="2">食品</option>
			<option value="3">建材</option>
			<option value="4">服装</option>
			<option value="5">通信</option>
		</select></td>
	</tr>
	<tr class="tb">
		<td>企业类型</td>
		<td><select name="type" id="type">
			<option>==请选择类型==</option>
			<option value="1">国有</option>
			<option value="2">私营</option>
			<option value="3">中外合资</option>
			<option value="4">外商独资</option>
			<option value="5">民营</option>
		</select></td>
	</tr>
	<tr class="tb">
		<td>营业执照号</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>国税登记号</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>地税登记号</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>注册资金</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>注册日期</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>开户行</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>银行帐号</td>
		<td><input type="text" name="legalPerson" id="legalPerson" /></td>
	</tr>
	<tr class="tb">
		<td>联系人</td>
		<td><input type="text" name="contactPerson" id="contactPerson" /></td>
	</tr>
	<tr class="tb">
		<td>联系电话</td>
		<td><input type="text" name="phone" id="phone" /></td>
	</tr>
	<tr class="tb">
		<td>传真</td>
		<td><input type="text" name="fax" id="fax" /></td>
	</tr>
	<tr class="tb">
		<td>电子邮件</td>
		<td><input type="text" size="40" name="email" id="email" /></td>
	</tr>
	<tr class="tb">
		<td>简介</td>
		<td><textarea name="desc" id="desc" cols="80" rows="10"></textarea></td>
	</tr>
	<tr class="tb">
		<td>主营项目</td>
		<td><textarea name="mainProjects" id="mainProjects" cols="80" rows="10"></textarea></td>
	</tr>
	<tr class="tb">
		<td>兼营项目</td>
		<td><textarea name="attProjects" id="attProjects" cols="80" rows="10"></textarea></td>
	</tr>
	<tr class="tb">
		<td>近期业绩</td>
		<td><textarea name="outstanding" id="outstanding" cols="80" rows="10"></textarea></td>
	</tr>
	<tr class="tb">
		<td>营业执照</td>
		<td><input type="file" size="40" name="email" id="email" /></td>
	</tr>
	<tr class="tb">
		<td>税务登记证</td>
		<td><input type="file" size="40" name="email" id="email" /></td>
	</tr>
	<tr class="tb">
		<td>法人代表身份证</td>
		<td><input type="file" size="40" name="email" id="email" /></td>
	</tr>
	<tr class="tf" >
		<td class="center" colspan="2">
			<input type="submit" value="" class="submit"/>
			<input type="reset" value="" class="reset"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>